﻿package Part_2_work;

import java.util.Scanner;

public class G_length {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String userName,pwd;
		System.out.print("请输入用户名：");
		userName = sc.next();
		System.out.print("请输入密码：");
		pwd = sc.next();
		if(userName.equals("TOM")&&pwd.endsWith("1234567")){
			System.out.println("登录成功！");
		}else{
			System.out.println("用户名或密码不匹配，登录失败！");
		}
	}
}
